﻿using Furion.DatabaseAccessor;
using System;
using System.ComponentModel.DataAnnotations;

namespace KseCms.Core
{
    public class Product:IEntity
    {
        [Key]
        public string Id { get; set; }

        [Required]
        [MaxLength(200)]
        public string Name { get; set; }

        [MaxLength(500)]
        public string Description { get; set; }

        public decimal Price { get; set; }

        public DateTime CreatedTime { get; set;} = DateTime.Now;

        public DateTime UpdatedTime { get; set;} = DateTime.Now;
    }
}
